package top.yonyong.mynacos.configcenter.pojo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.util.Date;

/**
 * @Describtion Todo
 * @Author yonyong
 * @Date 2020/7/6 10:08
 * @Version 1.0.0
 **/
@Data
@Builder(toBuilder = true)
@Entity
@AllArgsConstructor
@NoArgsConstructor
public class ConfigInfo {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    private String key;

    private String val;

    private String group;

    private Date createTime;

    private Date updateTime;

    private String handler;

    private String note;
}
